package cn.net.xinyi.xs.controller {
	
	import cn.net.xinyi.xs.model.LoadOrgansProxy;
	import cn.net.xinyi.xs.model.vo.PageVO;
	
	import org.puremvc.as3.multicore.interfaces.INotification;
	import org.puremvc.as3.multicore.patterns.command.SimpleCommand;
	
	public class LoadOrgansCommand extends SimpleCommand {
		
		override public function execute(note:INotification):void {
			var proxy:LoadOrgansProxy = facade.retrieveProxy(LoadOrgansProxy.NAME) as LoadOrgansProxy;
			proxy.loadOrgans(note.getBody() as PageVO);
			proxy.loadOrganCount();
		}
	}
}